package com.dreamoo.common.pojo.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 收藏实体类
 * 
 * @author dreamoo
 */
@Data
@TableName("collect")
public class Collect implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 收藏ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    
    /**
     * 用户ID
     */
    @TableField("user_id")
    private Long userId;
    
    /**
     * 收藏的梦境ID
     */
    @TableField("dream_id")
    private Long dreamId;
    
    /**
     * 创建时间
     */
    @TableField("created_at")
    private LocalDateTime createdAt;
} 